# encoding=utf-8

from PyQt5 import QtWidgets

from call_hd1 import HD1Window

import ui.ui_main


class MainPage(QtWidgets.QMainWindow, ui.ui_main.Ui_MainWindow):
	def __init__(self):
		super(MainPage, self).__init__()
		self.setupUi(self)
		self.m_HD1 = None

	def setupUi(self, MainWindow):
		ui.ui_main.Ui_MainWindow.setupUi(self, MainWindow)
		self.hd1Button.clicked.connect(self.openHD1)  # 实现跳转的信号语句

	def openHD1(self):
		self.m_HD1 = HD1Window()
		self.m_HD1.show()
